<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-tbTest-edit" th:object="${tbTest}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">测试站编号：</label>
            <div class="col-sm-8">
                <input name="stationId" th:field="*{stationId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试站名称：</label>
            <div class="col-sm-8">
                <input name="stationName" th:field="*{stationName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试件名称：</label>
            <div class="col-sm-8">
                <input name="deviceName" th:field="*{deviceName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">规格型号：</label>
            <div class="col-sm-8">
                <input name="deviceModel" th:field="*{deviceModel}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">部件号：</label>
            <div class="col-sm-8">
                <input name="devicePn" th:field="*{devicePn}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">部件序列号：</label>
            <div class="col-sm-8">
                <input name="deviceSn" th:field="*{deviceSn}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试日期：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input id="testDate" name="testDate" th:value="${#dates.format(tbTest.testDate, 'yyyy-MM-dd HH:mm:ss')}"
                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试报告编号：</label>
            <div class="col-sm-8">
                <input name="reportNo" th:field="*{reportNo}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试项编号：</label>
            <div class="col-sm-8">
                <input name="testItemNo" th:field="*{testItemNo}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试项：</label>
            <div class="col-sm-8">
                <input name="testItemContent" th:field="*{testItemContent}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试子项编号：</label>
            <div class="col-sm-8">
                <input name="testSubItemNo" th:field="*{testSubItemNo}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试子项：</label>
            <div class="col-sm-8">
                <input name="testSubItemContent" th:field="*{testSubItemContent}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试要求：</label>
            <div class="col-sm-8">
                <input name="testSubItemRequests" th:field="*{testSubItemRequests}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">最大值：</label>
            <div class="col-sm-8">
                <input name="testSubItemReqMax" th:field="*{testSubItemReqMax}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">最小值：</label>
            <div class="col-sm-8">
                <input name="testSubItemReqMin" th:field="*{testSubItemReqMin}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">曲线分析图：</label>
            <div class="col-sm-8">
                <input name="testSubItemBmp" th:field="*{testSubItemBmp}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">波形文件路径：</label>
            <div class="col-sm-8">
                <input name="testSubItemWavePath" th:field="*{testSubItemWavePath}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试值：</label>
            <div class="col-sm-8">
                <input name="testSubItemValue" th:field="*{testSubItemValue}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">测试值单位：</label>
            <div class="col-sm-8">
                <input name="testSubItemUnit" th:field="*{testSubItemUnit}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">子项是否通过：</label>
            <div class="col-sm-8">
                <input name="testSubItemIsPass" th:field="*{testSubItemIsPass}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试使用时间：</label>
            <div class="col-sm-8">
                <input name="testTotalTime" th:field="*{testTotalTime}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试通过项数量：</label>
            <div class="col-sm-8">
                <input name="testItemPassCount" th:field="*{testItemPassCount}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">测试未通过项数量：</label>
            <div class="col-sm-8">
                <input name="testItemFailCount" th:field="*{testItemFailCount}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/tbTest";
    $("#form-tbTest-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-tbTest-edit').serialize());
        }
    }

    $("#testDate").datetimepicker();
</script>
</body>
</html>